<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <link rel="shortcut icon" href="source-material/favicon.ico">
    <title>Yes HTML Yes</title>
    <meta name="keywords" content="K-on">
    <style type="text/css">
        h1 {
            color: rgb(250, 0, 133);
            text-align-last: center;
            background-color: cadetblue;
        }

        p {
            color: rgb(45, 250, 4);
        }

        body {
            background-color: rgba(221, 168, 23, 0.993);
            background-image: url('source-material/back.jpg'),url('source-material/back2.jpg');
            background-repeat: no-repeat,no-repeat;
            background-position:  right bottom,center;
            background-attachment: fixed,fixed;
            background-size: 15% auto,cover;
        }
        #music
        {
            text-align: center;
        }
        .cen
        {
            text-align: center;
        }
        *{
            text-align: center;
        }
        a:link {color: red; text-decoration: none; background-color: rgb(120, 247, 247);}
        a:visited {color: rgb(4, 105, 38);}
        a:hover {color: rgb(251, 255, 0); text-decoration: underline;}
        a:active {color: rgb(3, 42, 170);}
        a {
            font-weight: bold;
        }

        .container
        {
            width: 500px;
            height: 500px;
            margin: 0;
            padding: 0;
            background-color: #000000;
            margin: auto;
        }
    </style>
    
    <script src="MyFirstJavaScript.js"></script>

    <!--jquery
    <script src="https://ajax.aspnetcdn.com/ajax/jquery/jquery-1.9.0.min.js"></script>-->
    <script src="https://cdn.staticfile.org/jquery/1.10.2/jquery.min.js"></script>

    <!--echarts-->
    <script src="https://cdn.bootcdn.net/ajax/libs/echarts/4.7.0/echarts-en.common.js"></script>

    <!--live2d-->
    <script src="https://cdn.jsdelivr.net/gh/stevenjoezhang/live2d-widget@latest/autoload.js"></script>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/font-awesome/css/font-awesome.min.css">
    
</head>

<body onload="startTime()">
    <h1 style="text-shadow: 2px 2px rgb(251, 255, 0);">My First HTML!</h1>
    <p>
        <div id="music">
            <div id="txt"></div>
            <p id="demo"></p>
            <div >Link Start！<br></div>
            背景音乐：まどろみの約束<br>
        <audio controls>
            <source src="source-material/佐藤聡美 _ 茅野愛衣 - まどろみの約束 (微睡的约定) (V0).mp3">
        </audio>
        </div>
        <hr style="color: blueviolet;">
        <iframe src="https://www.luogu.com.cn/" width="100%" height="400" frameborder="0"></iframe><br>
        HTML<strong><span style="color: red;">tql</span></strong><br>
        <a href="https://www.chtholly.ac.cn/" style="color: rgb(17, 88, 3);">中国珂学院</a><br>
        <a href="https://blog.urusai.me" style="color: darkorange;"><b><em>Go to 无路赛</em></b></a>
        <nav>
            <a href="https://www.bilibili.com/" style="color: rgb(3, 42, 170);">好康的</a>
        </nav>
    </p>
    请选择您的属性：
    <select>
        <option value="大佬">大佬</option>
        <option value="巨佬" selected>巨佬</option>
        <option value="地表最强蒟蒻">地表最强蒟蒻</option>
    </select>
    <h2>continued...</h2>
    <p>
        <ruby>
            我 <rp>(</rp>
            <rt>つお</rt>
            <rp>)</rp>
            爱 <rp>(</rp>
            <rt>に</rt>
            <rp>)</rp>
            你 <rp>(</rp>
            <rt>ま</rt>
            <rp>)</rp>
        </ruby><br>
        <mark>K-on!<sup>K-on</sup><sub>K-on</sub></mark><br>
        <img id="image1" src="source-material/5C13CD9821B6CCC52D87EABF5C132079.jpg" width="50%" height="" alt="放学后Tea Time" />
        <br>
        <button type="button" onclick="modifyimage1()">修改图片</button>
    </p>
    <!--<span style="color:indigo;"><small>(下面这张可点击⬇)</small></span><br>-->
    <a href="https://www.agefans.tv/search?query=%E8%BD%BB%E9%9F%B3%E5%B0%91%E5%A5%B3&page=1">
        <img src="source-material/9FDF7B6BF94532B137277804DB198B07.jpg" alt="Go to K-on!" width="50%" height="">
    </a><br>
    进度...<br>
    <progress value="95" max="100">233</progress><br>
    <!--zhushi-->
    <!--请点击它！➡-->
    <button type="button" onclick="modify()">？？？</button>
    <button type="button" onclick="alert('您太强了%%%！')">点这里</button><br>
    <cite><s id="html" style="color: chartreuse;">this is a cite</s></cite>
    <table style="margin: auto;" border="5" cellpadding="10" cellspacing="5" bordercolor="#ff1493" bgcolor="#7fff00" width="200" height="200">
        <tr bgcolor="00ced1" align="center" valign="mid">
            <th bgcolor="dc143c">学习</th>
            <th>摸鱼</th>
        </tr>
        <tr>
            <td bgcolor="8b008b" align="center">×</td>
            <td bgcolor="a9a9a9" align="center">√</td>
        </tr>
    </table>
    <p><ins>HTML太强了</ins><del><i>不是</i></del></p>
    <form>
        <fieldset>
            <legend>最喜欢的动漫：</legend>
            番名：<input type="text" name=""><br>
            男主：<input type="text"><br>
            女主：<input type="text"><br>
            密码：<input type="password" name="password">
        </fieldset>
    </form>
    <del>(填了也不会怎么样)</del><br>

    <div id="jsi-particle-container" class="container"></div>
    <a href="https://c.runoob.com/codedemo/4506">↑来源</a>

    <h4>给我发送邮件：</h4>
    <form action="mailto:2542350699@qq.com" method="POST" enctype="text/plain">
        名字：<br>
        <input type="text" name="name"><br>
        你的邮箱：<br>
        <input type="text" name="mail"><br>
        想说什么：<br>
        <input type="text" name="comment" size=""><br>
        <input type="submit" value="发送">
        <input type="reset" value="重置">
    </form>
    <h4>今天的任务：</h4>

    <div>
    <ul">
        <li>摸鱼</li>
        <li>摸鱼</li>
        <li>摸鱼</li>
    </ul>
    </div>
    
    <a href="https://image.baidu.com/search/down?tn=download&word=download&ie=utf8&fr=detail&url=https%3A%2F%2Ftimgsa.baidu.com%2Ftimg%3Fimage%26quality%3D80%26size%3Db9999_10000%26sec%3D1586448615377%26di%3D57e90c2c441263b80ea824e099a6e7fb%26imgtype%3D0%26src%3Dhttp%253A%252F%252Fb-ssl.duitang.com%252Fuploads%252Fitem%252F201809%252F29%252F20180929200756_QRAPn.jpeg&thumburl=https%3A%2F%2Fss1.bdstatic.com%2F70cFvXSh_Q1YnxGkpoWK1HF6hhy%2Fit%2Fu%3D1992900484%2C1139124249%26fm%3D26%26gp%3D0.jpg"
        download="砂糖酱?">
        <img src="https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1586345575120&di=d28e59e504fb5d4e5b57f1654a90aba3&imgtype=0&src=http%3A%2F%2Fb-ssl.duitang.com%2Fuploads%2Fitem%2F201809%2F29%2F20180929200756_QRAPn.jpeg"
            width="30%" height="30%" alt="砂糖酱" /><br>
        <small>(点击下载⬆)</small>
    </a><br>

    <div class="cen">
    <video width="80%" height="80%" controls >
        <source  src="https://gss3.baidu.com/6LZ0ej3k1Qd3ote6lo7D0j9wehsv/tieba-smallvideo/60_c310c7bd70db2e9ea8a32387b82e5d41.mp4" type="video/mp4" >
    </video><br>
    </div>

    <small><small><del>我太弱了555</del></small></small>
    <button onclick="out()"><small>click</small></button>

    <button onclick="this.style.display='none'">
        点击消失
    </button><br>

    <input type="button" value="new world" onclick="newWorld()"><br>

    <div id="echart" style="margin-left: 300px; width: 600px; height: 400px;"></div>

    <div >
    <span id="hideChart" style="color: rgb(0, 255, 242);">隐藏图表</span>
    <span id="showChart" style="color: rgb(0, 255, 242);">显示图表</span><br>
    </div>

    <script>
        $(document).ready(function(){
            $("#hideChart").click(function(){
                $("#echart").hide(2000);
                $(this).hide(2000);
            });

            $("#showChart").click(function(){
                $("#echart").show(2000);
                $("#hideChart").show(2000);
            });
        });
    </script>

    <!--echarts-->
    <script type="text/javascript">
        var mychart=echarts.init(document.getElementById('echart'));
        var option={
            grid:{
                //left:'50%'
            },
            textStyle:{
                color:'rgba(45, 250, 4)'
            },
            title:{
                text:'study-plan'
            },
            tooltip:{},
            legend:{
                data:['difficult degree']
            },
            xAxis:{
                data:["c++","jquery","vue","bootstrap"]
            },
            yAxis:{},
            series:[
                {
                    name:'tql',
                    type:'bar',
                    data:[20,99,99,60]
                }
            ]
        };
        mychart.setOption(option);
    </script>

    <!--控制台输出-->
    <script>
        //console.log("???");
        var person={
            name:666,
            hanshu:function(){
                console.log("diaoYongHanShu");
            }
        }
        //console.log(person.name);
        //console.log(person.hanshu());
        //console.log(person.hanshu);
        person.hanshu();
        //person.hanshu;
        function out(){
            alert("End");
        }
    </script>

    <!--时间显示-->
    <script>
        function startTime(){
            var today=new Date();
            var h=today.getHours();
            var m=today.getMinutes();
            var s=today.getSeconds();// 在小于10的数字前加一个‘0’
            m=checkTime(m);
            s=checkTime(s);
            document.getElementById('txt').innerHTML=h+":"+m+":"+s;
            t=setTimeout(function(){startTime()},100);
        }
        function checkTime(i){
            if (i<10){
                i="0" + i;
            }
            return i;
        }
    </script>

    <!--时间显示-->
    <script>
        var myVar=setInterval(function(){myTimer()},100);
        function myTimer(){
            var d=new Date();
            var t=d.toLocaleTimeString();
            document.getElementById("demo").innerHTML=t;
        }
    </script>

    <script>
        //document.write(location.hostname);
        //document.write("<br>");
        document.write(location.href);
        document.write("<br>");
        //document.write(location.port);
        //document.write("<br>");
        //document.write(location.protocol);
        //document.write("<br>");
        //document.write(location.href);
        //document.write("<br>");
        //document.write(location.host);
        //document.write("<br>");
        function newWorld(){
        window.location.assign("https://www.agefans.tv/");
    }
    </script>
    
    <!--修改图片-->
    <script>
    function modifyimage1(){
        //var x=document.getElementById("image1");
        document.getElementById("image1").src="source-material/back3.jpg";
        document.getElementById("image1").alt="ToSaKaRin";
        //x.width="50%";
        //x.height="";
    }
    </script>

    <!--<div id="example"></div>
    <script>
        txt = "<p>浏览器代号: " + navigator.appCodeName + "</p>";
        txt+= "<p>浏览器名称: " + navigator.appName + "</p>";
        txt+= "<p>浏览器版本: " + navigator.appVersion + "</p>";
        txt+= "<p>启用Cookies: " + navigator.cookieEnabled + "</p>";
        txt+= "<p>硬件平台: " + navigator.platform + "</p>";
        txt+= "<p>用户代理: " + navigator.userAgent + "</p>";
        txt+= "<p>用户代理语言: " + navigator.systemLanguage + "</p>";
        document.getElementById("example").innerHTML=txt;
    </script>-->



<!--动态粒子-->
    <script>
        var RENDERER = {
	PARTICLE_COUNT : 1000,
	PARTICLE_RADIUS : 1,
	MAX_ROTATION_ANGLE : Math.PI / 60,
	TRANSLATION_COUNT : 500,
	
	init : function(strategy){
		this.setParameters(strategy);
		this.createParticles();
		this.setupFigure();
		this.reconstructMethod();
		this.bindEvent();
		this.drawFigure();
	},
	setParameters : function(strategy){
		this.$window = $(window);
		
		this.$container = $('#jsi-particle-container');
		this.width = this.$container.width();
		this.height = this.$container.height();
		
		this.$canvas = $('<canvas />').attr({width : this.width, height : this.height}).appendTo(this.$container);
		this.context = this.$canvas.get(0).getContext('2d');
		
		this.center = {x : this.width / 2, y : this.height / 2};
		
		this.rotationX = this.MAX_ROTATION_ANGLE;
		this.rotationY = this.MAX_ROTATION_ANGLE;
		this.strategyIndex = 0;
		this.translationCount = 0;
		this.theta = 0;
		
		this.strategies = strategy.getStrategies();
		this.particles = [];
	},
	createParticles : function(){
		for(var i = 0; i < this.PARTICLE_COUNT; i ++){
			this.particles.push(new PARTICLE(this.center));
		}
	},
	reconstructMethod : function(){
		this.setupFigure = this.setupFigure.bind(this);
		this.drawFigure = this.drawFigure.bind(this);
		this.changeAngle = this.changeAngle.bind(this);
	},
	bindEvent : function(){
		this.$container.on('click', this.setupFigure);
		this.$container.on('mousemove', this.changeAngle);
	},
	changeAngle : function(event){
		var offset = this.$container.offset(),
			x = event.clientX - offset.left + this.$window.scrollLeft(),
			y = event.clientY - offset.top + this.$window.scrollTop();
		
		this.rotationX = (this.center.y - y) / this.center.y * this.MAX_ROTATION_ANGLE;
		this.rotationY = (this.center.x - x) / this.center.x * this.MAX_ROTATION_ANGLE;
	},
	setupFigure : function(){
		for(var i = 0, length = this.particles.length; i < length; i++){
			this.particles[i].setAxis(this.strategies[this.strategyIndex]());
		}
		if(++this.strategyIndex == this.strategies.length){
			this.strategyIndex = 0;
		}
		this.translationCount = 0;
	},
	drawFigure : function(){
		requestAnimationFrame(this.drawFigure);
		
		this.context.fillStyle = 'rgba(0, 0, 0, 0.2)';
		this.context.fillRect(0, 0, this.width, this.height);
		
		for(var i = 0, length = this.particles.length; i < length; i++){
			var axis = this.particles[i].getAxis2D(this.theta);
			
			this.context.beginPath();
			this.context.fillStyle = axis.color;
			this.context.arc(axis.x, axis.y, this.PARTICLE_RADIUS, 0, Math.PI * 2, false);
			this.context.fill();
		}
		this.theta++;
		this.theta %= 360;
		
		for(var i = 0, length = this.particles.length; i < length; i++){
			this.particles[i].rotateX(this.rotationX);
			this.particles[i].rotateY(this.rotationY);
		}
		this.translationCount++;
		this.translationCount %= this.TRANSLATION_COUNT;
		
		if(this.translationCount == 0){
			this.setupFigure();
		}
	}
};
var STRATEGY = {
	SCATTER_RADIUS :150,
	CONE_ASPECT_RATIO : 1.5,
	RING_COUNT : 5,
	
	getStrategies : function(){
		var strategies = [];
		
		for(var i in this){
			if(this[i] == arguments.callee || typeof this[i] != 'function'){
				continue;
			}
			strategies.push(this[i].bind(this));
		}
		return strategies;
	},
	createSphere : function(){
		var cosTheta = Math.random() * 2 - 1,
			sinTheta = Math.sqrt(1 - cosTheta * cosTheta),
			phi = Math.random() * 2 * Math.PI;
			
		return {
			x : this.SCATTER_RADIUS * sinTheta * Math.cos(phi),
			y : this.SCATTER_RADIUS * sinTheta * Math.sin(phi),
			z : this.SCATTER_RADIUS * cosTheta,
			hue : Math.round(phi / Math.PI * 30)
		};
	},
	createTorus : function(){
		var theta = Math.random() * Math.PI * 2,
			x = this.SCATTER_RADIUS + this.SCATTER_RADIUS / 6 * Math.cos(theta),
			y = this.SCATTER_RADIUS / 6 * Math.sin(theta),
			phi = Math.random() * Math.PI * 2;
		
		return {
			x : x * Math.cos(phi),
			y : y,
			z : x * Math.sin(phi),
			hue : Math.round(phi / Math.PI * 30)
		};
	},
	createCone : function(){
		var status = Math.random() > 1 / 3,
			x,
			y,
			phi = Math.random() * Math.PI * 2,
			rate = Math.tan(30 / 180 * Math.PI) / this.CONE_ASPECT_RATIO;
		
		if(status){
			y = this.SCATTER_RADIUS * (1 - Math.random() * 2);
			x = (this.SCATTER_RADIUS - y) * rate;
		}else{
			y = -this.SCATTER_RADIUS;
			x = this.SCATTER_RADIUS * 2 * rate * Math.random();
		}
		return {
			x : x * Math.cos(phi),
			y : y,
			z : x * Math.sin(phi),
			hue : Math.round(phi / Math.PI * 30)
		};
	},
	createVase : function(){
		var theta = Math.random() * Math.PI,
			x = Math.abs(this.SCATTER_RADIUS * Math.cos(theta) / 2) + this.SCATTER_RADIUS / 8,
			y = this.SCATTER_RADIUS * Math.cos(theta) * 1.2,
			phi = Math.random() * Math.PI * 2;
		
		return {
			x : x * Math.cos(phi),
			y : y,
			z : x * Math.sin(phi),
			hue : Math.round(phi / Math.PI * 30)
		};
	}
};
var PARTICLE = function(center){
	this.center = center;
	this.init();
};
PARTICLE.prototype = {
	SPRING : 0.01,
	FRICTION : 0.9,
	FOCUS_POSITION : 300,
	COLOR : 'hsl(%hue, 100%, 70%)',
	
	init : function(){
		this.x = 0;
		this.y = 0;
		this.z = 0;
		this.vx = 0;
		this.vy = 0;
		this.vz = 0;
		this.color;
	},
	setAxis : function(axis){
		this.translating = true;
		this.nextX = axis.x;
		this.nextY = axis.y;
		this.nextZ = axis.z;
		this.hue = axis.hue;
	},
	rotateX : function(angle){
		var sin = Math.sin(angle),
			cos = Math.cos(angle),
			nextY = this.nextY * cos - this.nextZ * sin,
			nextZ = this.nextZ * cos + this.nextY * sin,
			y = this.y * cos - this.z * sin,
			z = this.z * cos + this.y * sin;
			
		this.nextY = nextY;
		this.nextZ = nextZ;
		this.y = y;
		this.z = z;
	},
	rotateY : function(angle){
		var sin = Math.sin(angle),
			cos = Math.cos(angle),
			nextX = this.nextX * cos - this.nextZ * sin,
			nextZ = this.nextZ * cos + this.nextX * sin,
			x = this.x * cos - this.z * sin,
			z = this.z * cos + this.x * sin;
			
		this.nextX = nextX;
		this.nextZ = nextZ;
		this.x = x;
		this.z = z;
	},
	rotateZ : function(angle){
		var sin = Math.sin(angle),
			cos = Math.cos(angle),
			nextX = this.nextX * cos - this.nextY * sin,
			nextY = this.nextY * cos + this.nextX * sin,
			x = this.x * cos - this.y * sin,
			y = this.y * cos + this.x * sin;
			
		this.nextX = nextX;
		this.nextY = nextY;
		this.x = x;
		this.y = y;
	},
	getAxis3D : function(){
		this.vx += (this.nextX - this.x) * this.SPRING;
		this.vy += (this.nextY - this.y) * this.SPRING;
		this.vz += (this.nextZ - this.z) * this.SPRING;
		
		this.vx *= this.FRICTION;
		this.vy *= this.FRICTION;
		this.vz *= this.FRICTION;
		
		this.x += this.vx;
		this.y += this.vy;
		this.z += this.vz;
		
		return {x : this.x, y : this.y, z : this.z};
	},
	getAxis2D : function(theta){
		var axis = this.getAxis3D(),
			scale = this.FOCUS_POSITION / (this.FOCUS_POSITION + axis.z);
			
		return {x : this.center.x + axis.x * scale, y : this.center.y - axis.y * scale, color : this.COLOR.replace('%hue', this.hue + theta)};
	}
};
$(function(){
	RENDERER.init(STRATEGY);
});
    </script>


</body>

</html>